let str = 'helloworldyou';
let reg = /\Bworld\B/;
console.log(reg.test(str));//true